package com.qmctl.rest.bean.selldeliveryconfirm;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

import com.qmctl.rest.entity.SellDeliveryOrderLines;

@XmlRootElement(name="OrderLine")
public class OrderLineClazz{

 public OrderLineClazz(){
 }
 private String orderLineNo;
 private String orderSourceCode;
 private String subSourceCode;
 private String ownerCode;
 private String itemCode;
 private String itemId;
 private String inventoryType; 
 private String itemName;
 private String extCode;
 private long planQty;
 private long actualQty;
 private String batchCode;
 private String productDate;
 private String expireDate;
 private String produceCode;
 @XmlElementWrapper(name="batchs")  
 @XmlElement(name="batch") 
 private List<BatchClazz> batchLst;
 private String qrCode;
 public String getOrderLineNo(){
   return orderLineNo;
 }
  public void setOrderLineNo(String sOrderLineNo){
    orderLineNo = sOrderLineNo;
  }
  public String getOrderSourceCode(){
    return orderSourceCode;
  }
  public void setOrderSourceCode(String sOrderSourceCode){
    orderSourceCode = sOrderSourceCode;
  }
  public String getSubSourceCode(){
    return subSourceCode;
  }
  public void setSubSourceCode(String sSubSourceCode){
    subSourceCode = sSubSourceCode;
  }

  public String getItemCode(){
    return itemCode;
  }
  public void setItemCode(String sItemCode){
    itemCode = sItemCode;
  }
  public String getItemId(){
    return itemId;
  }
  public void setItemId(String sItemId){
    itemId = sItemId;
  }
  public String getOwnerCode(){
    return ownerCode;
  }
  public void setOwnerCode(String sOwnerCode){
    ownerCode = sOwnerCode;
  }
  public String getItemName(){
    return itemName;
  }
  public void setItemName(String sItemName){
    itemName = sItemName;
  }
  public String getExtCode(){
    return extCode;
  }
  public void setExtCode(String sExtCode){
    extCode = sExtCode;
  }
  public long getPlanQty(){
    return planQty;
  }
  public void setPlanQty(long iPlanQty){
    planQty = iPlanQty;
  }
  public long getActualQty(){
    return actualQty;
  }
  public void setActualQty(long iActualQty){
    actualQty = iActualQty;
  }
  public String getBatchCode(){
    return batchCode;
  }
  public void setBatchCode(String sBatchCode){
    batchCode = sBatchCode;
  }
  public String getProductDate(){
    return productDate;
  }
  public void setProductDate(String sProductDate){
    productDate = sProductDate;
  }
  public String getExpireDate(){
    return expireDate;
  }
  public void setExpireDate(String sExpireDate){
    expireDate = sExpireDate;
  }
  public String getProduceCode(){
    return produceCode;
  }
  public void setProduceCode(String sProduceCode){
    produceCode = sProduceCode;
  }
  public List<BatchClazz> getBatchs(){
    return batchLst;
  }
  public void setBatchs(List<BatchClazz> clazzBatchs){
    batchLst = clazzBatchs;
  }
public String getInventoryType() {
	return inventoryType;
}
public void setInventoryType(String inventoryType) {
	this.inventoryType = inventoryType;
}
public String getQrCode() {
	return qrCode;
}
public void setQrCode(String qrCode) {
	this.qrCode = qrCode;
}
   
  public OrderLineClazz(SellDeliveryOrderLines beanClazz){
  
    orderLineNo = beanClazz.getOrderLineNo();
    orderSourceCode = beanClazz.getSourceOrderCode();
    subSourceCode = beanClazz.getSubSourceOrderCode();
    ownerCode = beanClazz.getOwnerCode();
    itemCode = beanClazz.getItemCode();
    itemId = beanClazz.getItemId();
    inventoryType = beanClazz.getInventoryType();
    ownerCode = beanClazz.getOwnerCode();
    itemName = beanClazz.getItemName();
    extCode = beanClazz.getExtCode();
    planQty = beanClazz.getPlanQty();
    actualQty = beanClazz.getActualQty();
    batchCode = beanClazz.getBatchCode();
    productDate = beanClazz.getProductDate();
    expireDate = beanClazz.getExpireDate();
    produceCode = "";
    //beanClazz.getProduceCode();
    batchLst = null;
    qrCode ="";
  }
}
